<template>
	<view v-if="isLoaded">
		<li-report
			height="900"
			:param.sync="param"
			:radios.sync="radios"
			:reportData="tableData"
			:columns="cd"
			label="异常查询"
			v-on:changeType="changeType($event)"
			:isShowLoadMore="isShowLoadMore"
		/>
	</view>
</template>

<script>
import date from '@/utils/date';
import LiReportMixin from '../../../mixins/liReportMixin.js';

export default {
	mixins: [LiReportMixin],
	data() {
		return {
			navTitle: '异常查询',
			reportFn: 'GetPageReport',
			param: {
				dataTimeRange: [date.getDate(0), date.getDate(0)],
				reportId: 113,
				dataType: 2,
				pageNum: 1,
				pageSize: 20
			},
			radios: [
				{
					name: '打折',
					value: 2,
					selected: true
				},
				{
					name: '退款',
					value: -1
				},
				{
					name: '赠送',
					value: 0
				}
			],
			cd: [
				{
					name: 'orderNo',
					label: '订单单号',
					fixed: true
				},
				{
					name: 'orderDate',
					label: '日期',
					sorter: true
				},
				{
					name: 'storeName',
					label: '门店名称'
				},

				{
					name: 'foodCode',
					label: '菜品条形码'
				},
				{
					name: 'foodName',
					label: '菜品名称'
				},
				{
					name: 'specName',
					label: '菜品规格'
				},

				{
					name: 'foodCategoryName',
					label: '菜品分类'
				},
				{
					name: 'price',
					label: '原价'
				},
				{
					name: 'quantity',
					label: '数量'
				},
				{
					name: 'amount',
					label: '原金额'
				},
				{
					name: 'discount',
					label: '折扣值'
				},
				{
					name: 'discountAmount',
					label: '折扣金额',
					sorter: true
				},
				{
					name: 'taskAmount',
					label: '做法加价'
				},
				{
					name: 'realAmount',
					label: '实收金额',
					sorter: true
				},
				{
					name: 'feedAmount',
					label: '加料加价'
				},
				{
					name: 'reduceAmount',
					label: '优惠金额',
					sorter: true
				},
				{
					name: 'allAmount',
					label: '小计',
					sorter: true
				},

				{
					name: 'departName',
					label: '出品部门'
				},
				{
					name: 'orderTypeName',
					label: '账单类型'
				},

				{
					name: 'deskName',
					label: '桌位名称'
				},

				{
					name: 'realPrice',
					label: '实价'
				},
				{
					name: 'costPrice',
					label: '成本价'
				},
				{
					name: 'setPrice',
					label: '套餐执行单价'
				}
			]
		};
	},
	methods: {}
};
</script>
